package org.hbgl.geoentity.db.dao;

import org.apache.ibatis.annotations.Param;
import org.hbgl.geoentity.db.domain.GeCarousel;
import org.hbgl.geoentity.db.domain.GeCo;
import org.hbgl.geoentity.db.domain.GeContent;
import org.hbgl.geoentity.db.domain.SiteSetting;
import org.hbgl.geoentity.db.vo.CarouselVo;
import org.hbgl.geoentity.db.vo.CoVo;
import org.hbgl.geoentity.db.vo.ContentVo;

import java.util.List;

public interface GeContentMapper {

    List<ContentVo> selectContentList(@Param("columnId") Integer columnId, @Param("title") String title);
    List<ContentVo> selectSiteContentList(@Param("columnId") Integer columnId, @Param("title") String title);

    List<ContentVo> queryContentList(@Param("columnId") Integer columnId, @Param("title") String title, @Param("startTime") String startTime, @Param("endTime") String endTime);
    List<ContentVo> querySiteContentList(@Param("columnId") Integer columnId, @Param("title") String title, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<GeContent> findByTitleAndColumnId(@Param("columnId") Integer columnId, @Param("title") String title);

    int insertContent(GeContent content);

    ContentVo findContentById(@Param("id") Integer id);

    int deleteContentById(@Param("id") Integer id);

    int updateByExampleSelective(@Param("record") GeContent content);

    List<SiteSetting> seeSiteSetting();

    int updateSiteSettingById(@Param("record") SiteSetting siteSetting);

    List<CoVo> selectCoList(@Param("title") String title);
    List<CoVo> selectSiteCoList(@Param("title") String title);

    List<GeCo> findCoByTitle(@Param("title") String title);

    int insertCo(GeCo co);

    CoVo findCoById(@Param("id") Integer id);

    int deleteCoById(@Param("id") Integer id);

    int updateCoByExampleSelective(@Param("record") GeCo co);

    List<CarouselVo> selectCarouselList(@Param("title") String title);

    List<CarouselVo> selectSiteCarouselList(@Param("title") String title);

    List<GeCarousel> findCarouselByTitle(@Param("title") String title);

    int insertCarousel(GeCarousel co);

    CarouselVo findCarouselById(@Param("id") Integer id);

    int deleteCarouselById(@Param("id") Integer id);

    int updateCarouselByExampleSelective(@Param("record") GeCarousel co);

}
